import { RouterConfg } from './router';

//pages

import LoginPage from '@/pages/Login';
import DocumentPage from '@/pages/Document';

import Fub from '@/components/Fub';
import NotFond from '@/pages/NotFond';
import Sub from '@/components/sub/Sub';

const routes: RouterConfg[] = [
  {
    path: '/',
    exact: true,
    component: LoginPage,
  },
  {
    path: '/document',
    component: DocumentPage,
    routes: [
      {
        path: 'sub',
        component: Sub,
      },
      {
        path: 'fub',
        component: Fub,
      },
    ],
  },
  {
    path: '*',
    component: NotFond,
  },
];

export default routes;
